{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}
<!--header stop-->
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/headertitle.html"}
<!--header end-->
<div class="box-user">
<section class="wrap">

    <!--content stop-->

    <section class="list-filter mt10p">


        <section class="hot-commodity">
            <div style="width:100%;" id="swiper-container3" class="swiper-container">
                <div class="swiper-wrapper">

                    <div class="swiper-slide">
                        <table class="ssw_tab">
                            <tr>
                                <td style="width: 18%; ">品种</td>
                                <td>
                                    <div style="padding: 15px 0px;">
                                    <select name="cn" id="cn" style="margin: 0px; width: 96%;" class="input_test business_id">
                                        <option value="" >请选择</option>
                                        {foreach from=$_cateArr key=key item=item}
                                        <option value="{$key}">{$key}</option>
                                        {/foreach}
                                    </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>币种</td>
                                <td>
                                    <div style="padding: 15px 0px;">
                                    <select name="currency_code" id="currency_code" style="margin: 0px; width: 96%;" class="input_test business_id">
                                        <option value="" >请选择</option>
                                        <option value="RMB">人民币</option>
                                        <option value="USD">美金</option>
                                        <option value="EUR">欧元</option>
                                    </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>厂商</td>
                                <td>
                                    <div style="padding: 15px 0px;">
                                    <select name="brand_name" id="brand_name" style="margin: 0px; width: 96%;" class="input_test business_id">
                                    <option value="" >请选择</option>
                                    {foreach from=$brand_name key=key item=item}
                                    <option value="{$item}">{$item}</option>
                                    {/foreach}
                                    </select>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>区域</td>
                                <td>
                                    <div style="padding: 15px 0px;">
                                    <select name="region" id="region" style="margin: 0px; width: 96%;" class="input_test business_id">
                                        <option value="" >请选择</option>
                                        <option value="华东">华东</option>
                                        <option value="华南">华南</option>
                                        <option value="华北">华北</option>
                                    </select>
                                        </div>
                                </td>
                            </tr>
                        </table>
                        <div style="margin: 10px;">
                        <input type="submit" value="重置" class="delete ksbtn">
                        <input type="submit" value="确认"  class="save ksbtn confirm_btn">
                        </div>
                    </div>

                </div>
            </div>
        </section>
    </section>

    <!--content end-->

</section>
</div>
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/footerlogin.html"}
{literal}
<script>
    $(function(){
        $(".confirm_btn").click(function(){
            var region =  $("#region option:selected").val();
            var cn =  $("#cn option:selected").val();
            var currency_code =  $("#currency_code option:selected").val();
            var brand_name =  $("#brand_name option:selected").val();

            var url = '/price/index';
            if(region !=''){
                url += '/region/'+region;
            }
            if(cn !=''){
                url += '/cn/'+cn;
            }
            if(currency_code !=''){
                url += '/currency_code/'+currency_code;
            }
            if(brand_name !=''){
                url += '/brand_name/'+brand_name;
            }
            window.location.href=url;

        });
    });
</script>
{/literal}

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}
